//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.tm.chargecar.enums;

public enum ResultEnum {
    SUCCESS(200, "操作成功滴长"),
    ERROR(201, "操作失败滴长"),
    QUERY_ERROR(202, "查询异常"),
    ADD_ERROR(400, "数据异常"),
    Withdrawal_ERROR(203, "提现金额不能小于0"),
    Withdrawal_insufficient_ERROR(204, "金额不足"),
    Withdrawal_SUCCESS(200, "提现成功");

    private Integer code;
    private String msg;

    private ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

    public static ResultEnum find(Integer code) {
        ResultEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            ResultEnum resultEnum = var1[var3];
            if (resultEnum.getCode() == code) {
                return resultEnum;
            }
        }

        return null;
    }

    public static void main(String[] args) {
        System.out.println(find(201).getMsg());
    }
}
